package me.yobol.blog.bean;

import java.io.Serializable;
import java.sql.Date;
import java.sql.Timestamp;

public class UserBean implements Serializable {
	
	private static final long serialVersionUID = -7993775439332537746L;
	
	private int userId;
	private String name;
	private String password;
	private String email;
	private String gender;
	private Date birthday;
	private String phone;
	private Timestamp registerTime;
	private Timestamp latestLoginTime;
	
	public UserBean() {
	}
	
	public UserBean(String name, String password, String email,
			String gender, Date birthday, String phone, Timestamp registerTime,
			Timestamp latestLoginTime) {
		this.name = name;
		this.password = password;
		this.email = email;
		this.gender = gender;
		this.birthday = birthday;
		this.phone = phone;
		this.registerTime = registerTime;
		this.latestLoginTime = latestLoginTime;
	}

	public UserBean(int userId, String name, String password, String email,
			String gender, Date birthday, String phone, Timestamp registerTime,
			Timestamp latestLoginTime) {
		this(name, password, email, gender, birthday, phone, registerTime,latestLoginTime);
		this.userId = userId;
	}

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public Timestamp getRegisterTime() {
		return registerTime;
	}

	public void setRegisterTime(Timestamp registerTime) {
		this.registerTime = registerTime;
	}

	public Timestamp getLatestLoginTime() {
		return latestLoginTime;
	}

	public void setLatestLoginTime(Timestamp latestLoginTime) {
		this.latestLoginTime = latestLoginTime;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	
	
}
